const mysql = require('mysql');

let bookId = 1;
let sql = "SELECT * FROM ?? WHERE ?? = ?";
let inserts = ['t_books', 'id', bookId];

// SELECT * FROM `t_books` WHERE `id` = 1
sql = mysql.format(sql, inserts);

console.log(sql);
